﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Model;
using DAL;
namespace BLL
{
   public class RoleBll
    {
       
       RoleDal dal = new RoleDal();
       /// <summary>
       /// 显示角色列表
       /// </summary>
       /// <returns></returns>
       public List<Role> ShowRole()
       {
           return dal.Show();
       }

       /// <summary>
       /// 添加角色
       /// </summary>
       /// <param name="m"></param>
       /// <returns></returns>
       public bool AddRole(Role m)
       {
           return dal.Add(m);
       }
       /// <summary>
       /// 删除角色
       /// </summary>
       /// <param name="m"></param>
       /// <returns></returns>
       public bool DelRole(Role m)
       {
           return dal.Del(m);
       }
       public Role BackRole(int id)
       {
           return dal.Back(id);
       }
       public bool UpdRole(Role m,int id)
       {
           return dal.Update(m, id);
       }








    }
}
